#ifndef wu_MASSIVE_H
#define wu_MASSIVE_H

#pragma once
#include "wuBaseSkin.h"
#include "wuBase2d.h"
//#include "ofxTriangle.h"

class wuMassive : public wuBaseSkin, public wuBase2d
{
    public:
        wuMassive();
        ~wuMassive();

		void setup(ofxBox2d * _box2d, ofImage *_skin, ofRectangle rect, vector <ofPoint> *countourPts);
//		void makeComplexBody(b2Body* body, vector <ofPoint> *countourPts);
        void setPhysics(float _density, float _bounce, float _friction);
		void update();
        void draw(bool pinta_bg=false, int offX=0);
        void clear(void);
		void touch(int _x,int _y, int forceX=30, int forceY=0);

		// box2d
        b2Body* body;
        ofPolyline	shape;
        ofxBox2dPolygon poly;

		float density, bounce, friction;


};
#endif

